home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d8 / telerepl.arc / TR.DOC < prev    next >
Encoding:
Text File  |  1990-09-12  |  18.9 KB  |  410 lines

  1. TeleReplica Instruction Manual
  2.  
  3. 1.    What TeleReplica Will Do
  4.  
  5. 1.1   TeleReplica will allow you to connect two IBM PC-compatible computers
  6.       together via telephone lines and modems, and arrange for input to be
  7.       accepted from either keyboard, and for both displays to appear identical.
  8.       The computer which is running normal programs is called the host
  9.       computer. The other computer is called the replica computer, since its
  10.       display is a replica of the host computer's display.
  11.  
  12. 1.2   TeleReplica will do a reasonable job of optimizing the screen changes
  13.       transmitted, so that (for example) moving a highlighted menu bar will
  14.       appear almost immediately even at 1200 baud (provided the call is
  15.       relatively local).
  16.  
  17. 1.3   TeleReplica always updates the replica computer's screen to match the
  18.       current host screen. This means that if several commands are issued
  19.       without waiting for the display to catch up, then the replica screen will
  20.       be updated to show the final host screen, without wasting time
  21.       transmitting the intermediate screens.
  22.  
  23. 1.4   TeleReplica uses a password of up to 39 characters, which means an
  24.       intruder would (on average) take millions of years at 2400 baud to guess
  25.       a well chosen password! Since this password is transmitted automatically,
  26.       there is no need to keep it short and easy to remember - once TeleReplica
  27.       is installed, you will never need to enter the password manually.
  28.  
  29. 1.5   TeleReplica will allow the host site to call the replica site, or the
  30.       other way around. For consultants this means you can make your clients
  31.       pay the telephone bills!
  32.  
  33. 1.6   TeleReplica will automatically detect the baud rate being used by the
  34.       replica computer, and set the host computer's baud rate to match. This
  35.       means that users with different speed modems can all access a single
  36.       host.
  37.  
  38. 1.7   TeleReplica only uses about 8K of memory on the host computer, which
  39.       means there should be enough memory left to run most applications.
  40.  
  41.  
  42. 2.    What TeleReplica Will NOT Do
  43.  
  44. 2.1   TeleReplica will not replicate graphics displays. If the user at the
  45.       replica computer runs a program that displays graphics, then the replica
  46.       display may show (textual) garbage. Keystrokes will still be transmitted
  47.       to the host computer, but the user must remember which keys are necessary
  48.       to get out of graphics mode again! TeleReplica gives a warning that
  49.       graphics mode has been entered, but by then it is too late to avoid it.
  50.       However, in an emergency TR can instruct the host computer to reboot, so
  51.       provided TRHOST is run from AUTOEXEC.BAT this provides a means of
  52.       recovery.
  53.  
  54. 2.2   TeleReplica will only work with standard COM1 or COM2 ports. Use of COM3,
  55.       COM4, and all PS/2 ports is not supported.
  56.  
  57. 2.3   TeleReplica will only work with a modem and modem cable that provide
  58.       carrier detect and data terminal ready signals in addition to the minimum
  59.       transmit data, receive data and ground signals.
  60.  
  61. 2.4   TeleReplica will cause bad "snowing" on some older CGA display cards. No
  62.       attempt has been made to use the retrace intervals for screen memory
  63.       access.
  64.  
  65. 2.5   TeleReplica will slow down the normal operation of the host computer. On
  66.       a 4.77MHz PC performance can be halved; on a faster host the difference
  67.       will not be so noticeable.
  68.  
  69.  
  70. 3.    Why Use TeleReplica?
  71.  
  72. 3.1   Access to Local Area Network from Home
  73.  
  74.       TeleReplica will allow you to connect into your office computer from
  75.       home. This means you do not need to take all your data files home with
  76.       you, and that you do not need to license additional copies of your
  77.       software (since your home computer is not running the software, only
  78.       replicating the screen of your office computer). If your office computer
  79.       is part of a local area network, then you automatically have access to
  80.       all the network facilities from home.
  81.  
  82. 3.2   Software Support
  83.  
  84.       TeleReplica will allow you to take over your client's computer, so that
  85.       you can see what is going wrong. In many cases this will avoid the need
  86.       for an expensive trip to the client's site.
  87.  
  88.  
  89. 4.    How to Install TeleReplica
  90.  
  91. 4.1   Host Installation
  92.  
  93.       To install TeleReplica at the host computer, first copy the files:
  94.       TRHOSTIN.EXE, TRHOST.EXE, TRPUT.EXE, TRGET.EXE, TRTALK.EXE, TRCHECK.EXE,
  95.       TRKEY.EXE and TRDIAL.EXE into a directory (say \TR) on the host computer.
  96.       Then enter the command: TRHOSTIN
  97.  
  98.       Your display should show a menu similar to:
  99.  
  100.       TeleReplica Host Installation Program
  101.  
  102.          0. Save changes and leave installation program
  103.          1. Select serial port (currently COM1)
  104.          2. Change password (currently "password")
  105.          3. Change modem initialization string (currently:
  106.             "\ratz\r\D1000.ata\r")
  107.          4. Change modem dialing format string (currently:
  108.             "atdt %s\r")
  109.          5. Select maximum baud rate (currently 2400)
  110.          6. Abandon changes
  111.  
  112.       Selection:
  113.  
  114.       Consider each of these options in turn:
  115.  
  116. 4.1.1 Select Serial Port
  117.  
  118.       Another menu will appear:
  119.  
  120.       TeleReplica Host Program Serial Port Selection
  121.  
  122.          0. No change
  123.          1. COM1 port (base 0x03f8, interrupt 0x0c)
  124.          2. COM2 port (base 0x02f8, interrupt 0x0b)
  125.  
  126.       Selection:
  127.  
  128.       Only the two standard serial ports are currently supported. Simply choose
  129.       one or the other!
  130.  
  131. 4.1.2 Change Password
  132.  
  133.       The string editing menu will appear:
  134.  
  135.       TeleReplica Host Program Password Selection
  136.  
  137.       Edit existing string:
  138.       password
  139.  
  140.       Whenever you see the Edit existing string: prompt, you can use the left
  141.       and right arrow keys to move the cursor through the string, and the
  142.       backspace and delete keys to delete characters to the left of or under
  143.       the cursor respectively. Any normal characters you type will be inserted
  144.       at the cursor position.
  145.  
  146.       You will not be able to enter more than the maximum allowed number of
  147.       characters for any string.
  148.  
  149.       Since you will only need to enter the password twice during installation,
  150.       and never in normal use, it is recommended that you make the password
  151.       near the maximum length and quite random. The main thing is that no-one
  152.       should have any chance of guessing the password.
  153.  
  154. 4.1.3 Change Modem Initialization String
  155.  
  156.       The string editing menu will appear again, this time asking for the modem
  157.       initialization string. This string is transmitted to the modem at the
  158.       maximum baud rate when TRHOST runs for the first time. If you are using
  159.       an automatic power switch that powers up the host computer when the
  160.       telephone starts ringing, then the initialization string may need to
  161.       answer the phone. There may also be various operating modes that cannot
  162.       be stored permanently in your modem's non-volatile memory, and which must
  163.       therefore be established each time TRHOST starts. In many applications,
  164.       where nothing needs to be changed, this string may be blank.
  165.  
  166.       You will probably need to refer to the instruction manual for the host
  167.       modem to work out what if anything is required.
  168.  
  169.       As well as normal characters, you may need to include some special
  170.       characters such as carriage return. Carriage return can be encoded as \r
  171.       (see the main menu in section 4.1). Alternatively, any character can be
  172.       entered in hexadecimal as \0x followed by two hex digits (for example,
  173.       carriage return is \0x0D).
  174.  
  175.       It may also be necessary to include some kind of delay. For example, some
  176.       modems go off into a world of their own for a second or so after a reset
  177.       command. Delays are entered in milliseconds as \D followed by the delay
  178.       (for example, \D1000. [1 second] or \D500. [half a second]). Delays are
  179.       only accurate to the nearest 1/18th of a second, so the number you enter
  180.       may be modified slightly to reflect the nearest possible actual delay.
  181.  
  182. 4.1.4 Change Modem Dialing Format String
  183.  
  184.       This string determines what TRDIAL will send to the modem to dial a
  185.       number. The usual use of TRDIAL will be something like TRDIAL 221166, so
  186.       normally the dialing format string should contain a %s to insert the
  187.       number. For example, if the dialing string is "atdt %s\r" and the user
  188.       enters the previous dialing command, then what will be sent to the modem
  189.       is "atdt 221166\r".
  190.  
  191.       Alternatively, if only one number is required, then the dialing format
  192.       string may contain the actual number, in which case the user will only
  193.       need to enter TRDIAL by itself.
  194.  
  195. 4.1.5 Select Maximum Baud Rate
  196.  
  197.       Another window will appear:
  198.  
  199.       TeleReplica Host Program Maximum Baud Rate Selection
  200.  
  201.       Enter baud rate:
  202.  
  203.       You should enter the maximum baud rate that the host modem is capable of
  204.       using. Usually this will be 1200, 2400 or 9600. Note that TRHOST can
  205.       automatically adjust to half this baud rate, a quarter of this baud rate,
  206.       or one eighth of this baud rate. Thus if you choose 2400 baud, TRHOST
  207.       will be able to work at 2400, 1200, 600 or 300 baud (provided the host
  208.       modem can handle these speeds).
  209.  
  210. 4.1.6 Abandon Changes
  211.  
  212.       If you have made a mistake, or if you only wanted to see what the current
  213.       settings were, then this option allows you to quit without making any
  214.       changes.
  215.  
  216. 4.1.7 Save Changes and Leave Installation Program
  217.  
  218.       This is the normal way to exit this program when you have made all the
  219.       required changes. The relevant files (TRHOST.EXE, TRGET.EXE, TRPUT.EXE
  220.       and TRDIAL.EXE) will all be modified appropriately.
  221.  
  222.  
  223. 4.2   Replica Installation
  224.  
  225.       To install TeleReplica at the replica computer, first copy the files:
  226.       TR.EXE, TR.HLP, and TR.TR into a directory (say \TR). Then use a text
  227.       editor (such as DTE) to edit the file TR.TR. This file should look
  228.       something like:
  229.  
  230.          TeleReplica Configuration File
  231.          Note: Do NOT change the order of these parameters,
  232.          or delete any lines!
  233.  
  234.       "COM1"             Communications port (COM1 or COM2)
  235.       2400               Baud rate (normally 300, 1200, 2400, or 9600)
  236.       "COMSPEC"          Path for DOS Command Interpreter (or "COMSPEC")
  237.       07                 Attribute for normal text (such as help screen)
  238.       47                 Attribute for file transfer monitoring
  239.                          [70 for Hercules]
  240.       4F                 Attribute for pop-up window text
  241.       "trput %s\r"       Host command to send (download) files
  242.       "trget\r"          Host command to receive (upload) files
  243.       "trtalk\r"         Host command to start "talk" session
  244.       440                Frequency of "bell" tone (Hz)
  245.       100                Duration of "bell" tone (ms)
  246.       128                Block size for file upload (1-256)
  247.       4                  Number of block buffers for upload (1-8)
  248.       "NO"               Send "break" in response to framing error? (YES/NO)
  249.       111                Length of "break" (ms)
  250.       4000               Time to wait before giving up transfer (ms)
  251.       2000               Time to wait for first char before timeout (ms)
  252.       500                Time to wait for subsequent chars in block (ms)
  253.       "password"         Password to log in to host computer
  254.       "atdt 123 456\r"   Connect command for modem
  255.       "\D1000.+++\D1000.ath0\r"    Disconnect command for modem
  256.  
  257.          Each of the remaining lines must contain 3 strings and a number.
  258.          The first string is the trigger string to search for.
  259.          The second string is the response to be sent after the trigger.
  260.          The third string is the response to be sent after timeout.
  261.          The number is the time to wait before timeout (in ms).
  262.  
  263.       "RING"        "ata\r"        ""             10000
  264.  
  265.       Most of these parameters will not need to be changed. The serial port
  266.       (COM1 or COM2) and the baud rate should be set appropriately for the
  267.       replica computer and modem. Video attributes are two hexadecimal digits:
  268.       the first is the background color, and the second is the foreground
  269.       color. The password must be changed to match the password installed in
  270.       TRHOST at the host computer. The connect command for the modem is sent
  271.       when TR starts running, and the disconnect command is sent when TR
  272.       terminates.
  273.  
  274.       The modem command strings here have the same format as those described
  275.       above for the host computer installation. However, make sure you leave
  276.       the double quotes (") around each string!
  277.  
  278.       The automatic response strings at the end of the file can be used to
  279.       respond to modem status messages. For example, if the replica computer's
  280.       modem is not set to auto-answer, then TeleReplica may need to respond to
  281.       a "RING" message from the modem by answering the 'phone.
  282.  
  283.       Please note that since this file contains the password, anyone who
  284.       obtains a copy of this file can access the host computer!
  285.  
  286.  
  287. 5.    How to Use TeleReplica
  288.  
  289.       The following instructions assume that TeleReplica has been correctly
  290.       installed (see section 4).
  291.  
  292. 5.1   Host Computer
  293.  
  294.       First run the TRHOST program. If the replica computer is to originate the
  295.       telephone call, this is all that is necessary.
  296.  
  297.       If the host computer is to originate the call, then use the command:
  298.                     TRDIAL
  299.       or
  300.                     TRDIAL number
  301.       depending on how the dialing format string was installed.
  302.  
  303.       Once TRHOST is resident and the call is established, the host computer
  304.       can be used normally. The only difference is that everything that appears
  305.       on the screen is also being replicated on the replica computer's screen.
  306.  
  307.       The only way to remove TRHOST from memory is to reboot the host computer.
  308.  
  309. 5.2   Replica Computer
  310.  
  311.       Use the command:
  312.                     TR             [use TR.TR configuration file]
  313.       or
  314.                     TR filename    [use filename.TR configuration file]
  315.  
  316.       If the replica computer was to originate the call, then the modem
  317.       initialization string in the configuration file will usually include a
  318.       dial command to call the host computer.
  319.  
  320.       If the host computer was to originate the call, then the initialization
  321.       string may contain an answer 'phone command. Note that in this case it is
  322.       important that the TR program not be run until after the phone starts
  323.       ringing! (Alternatively, there may be no initialization string, but
  324.       instead there may be a trigger string to respond to RING from the modem.)
  325.  
  326.       If the configuration file contains no modem initialization string, then
  327.       the user at the remote computer can enter modem commands manually. This
  328.       may be convenient for a consultant wishing to dial many different
  329.       clients.
  330.  
  331.       Once both TR and TRHOST are running and connected to each other, they
  332.       will automatically adjust the host computer's baud rate and the host
  333.       computer will check the password provided by the replica computer.
  334.       Provided the password is correct, the replica computer will effectively
  335.       be able to take over the host computer, or alternatively to observe
  336.       whatever the host computer is doing. Any key typed on the replica
  337.       computer will be acted upon by the host computer, and anything that
  338.       appears on the host computer's screen will also appear on the replica
  339.       computer's screen.
  340.  
  341.       It is sometimes necessary to execute a command on the replica computer,
  342.       rather than transmitting the keystroke to the host computer. This is
  343.       achieved by holding down left shift, right shift, ctrl and alt all at the
  344.       same time. When you do this a list of all the possible commands will be
  345.       displayed, and you can then type the required command key:
  346.  
  347.       F3    start a "talk" session, where what is typed at the host computer is
  348.             displayed in the top half of the screen, and what is typed at the
  349.             replica computer is displayed in the bottom half of the screen.
  350.             This is useful for carrying on a "conversation" with the user at
  351.             the other end.
  352.       F4    end a "talk" session
  353.       F8    reboot the host computer (useful if host computer "hangs" for any
  354.             reason, but make sure TRHOST is run from AUTOEXEC.BAT!)
  355.       F9    send break, restart session [use this if TeleReplica locks up -
  356.             very rare!]
  357.       F10   exit TeleReplica [optionally shell out and return later]
  358.       Home  refresh display from HOST [use this if a bad 'phone line messes up
  359.             the screen]
  360.       PgUp  upload file using DMP protocol [transfer file(s) from replica to
  361.             host]
  362.       PgDn  download file using DMP protocol [transfer file(s) from host to
  363.             replica]
  364.  
  365.       Note that before starting a "talk" session or performing a file transfer,
  366.       the host computer must be at the DOS prompt, and TRTALK.EXE, TRGET.EXE
  367.       and TRPUT.EXE must be accessible in the current path.
  368.  
  369.       If a file transfer needs to access a file in another directory, it may be
  370.       convenient to shell out of TR, change directories, and then exit from DOS
  371.       back into TR to start the file transfer. However, TR will not transmit
  372.       any drive or path that you specify.
  373.  
  374.  
  375. 6.    TeleReplica Utility Programs
  376.  
  377. 6.1   TRCHECK
  378.  
  379.       TRCHECK checks to see if the current time is within a specified range,
  380.       and returns the DOS errorlevel set to 0 if within the range and 1 if
  381.       outside the range. The following code might appear in an AUTOEXEC.BAT
  382.       file on a host computer:
  383.             trcheck 9:00:00 17:00:00
  384.             if errorlevel 1 goto runTR
  385.             goto done
  386.             :runTR
  387.             trhost
  388.             :done
  389.       The effect of this is to first check to see if the time is between 9AM
  390.       and 5PM. If so, then errorlevel is set to 0, and nothing further happens.
  391.       However, if the time is not between 9 and 5, then trhost will be run.
  392.  
  393.       This has proved valuable when TRHOST must run on an office computer
  394.       outside normal working hours, but the computer must be used normally
  395.       during the day.
  396.  
  397.  
  398. 6.2   TRKEY
  399.  
  400.       TRKEY checks to see if a key has been pressed. This is useful when a
  401.       computer will usually be used as a TeleReplica host, but sometimes must
  402.       be used locally. Rather than having to boot from a different disk, the
  403.       following code might appear in an AUTOEXEC.BAT file on a host computer:
  404.             trkey
  405.             if errorlevel 1 goto done
  406.             trhost
  407.             :done
  408.       The effect of this is to run TRHOST only if no key has been pressed. If a
  409.       user is at the computer and presses a key then TRHOST will not be loaded.
  410.